#include <iostream>
#include <queue>
using namespace std;

int main()
{ queue<int> q;

  q.push(5);
  q.push(10);
  q.push(8);
  cout << q.size() << " " << q.front() << endl;
  
  q.pop();
  q.push(6);
  q.push(12);
  
  while(!q.empty())
  { cout << q.front() << endl;
    q.pop();
  }
  
  return 0;
}
